<template>
  <div class="formChild">
    <p class="subTitle">{{source.LBL}}</p>
    <!-- {{source}} -->
    <div class="cont">
      <p class="desc">{{source.DESC}}</p>
      <div class="date">
        <P v-if="source.DateFormat === 'YYYY - MM - DD'">
            <el-input v-model="date"  placeholder="请输入内容"></el-input>
            <span style="margin-left: 10px">{{source.DateFormat}}</span>
        </P>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "formDate",
  data() {
    return {
     
    };
  },
  props: {
    source: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  computed:{
    date(){
      let date = new Date(this.source.DATE).Format("yyyy-MM-dd");
      return date;
    }
  }
};
</script>
<style lang="scss" scoped src="./com.scss"></style>
<style lang="scss" scoped>
.date {
  height: 40px;
  float: left;
  .el-input{
    width: 200px;
  }
}
</style>